package com.atguigu.gmall.feign.item;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.Map;


@RequestMapping("/api/inner")
//这是一个远程调用客户端-远程调用service-product这个模块 JJJJJ
@FeignClient("service-item")
public interface SkuDetailFeignClient {

    /**
     * 查询商品详情
     * @param skuId
     * @return
     */
    @GetMapping("/sku/detail/{skuId}")
    Map<String, Object> itemDetail(@PathVariable("skuId") Long skuId);

}
